﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace Login.Models
{
    /// <summary>
    /// The LoginModel is used to represent the input of
    /// the login form.
    /// </summary>
    public class LoginModel
    {
        /// <summary>
        /// The student or teacher's number
        /// </summary>
        [Required(ErrorMessage = "Vul je student-/docentnummer in")]
        [Display(Name = "Student-/docentnummer")]
        public string Username { get; set; }

        /// <summary>
        /// The password
        /// </summary>
        [Required(ErrorMessage = "Vul je wachtwoord in")]
        [DataType(DataType.Password)]
        [Display(Name = "Wachtwoord")]
        public string Password { get; set; }
    }
}
